<%--
  Created by IntelliJ IDEA.
  User: 李柯
  Date: 2021/4/22
  Time: 7:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"/>
    <script src="jquery/jquery-2.1.1.min.js"></script>
    <script>

        $(function () {

            $("#btn2").click(function () {
                $.ajax({
                    "url": "send/array/two.html",
                    "type": "post",
                    "data": {
                        "array[0]": 5,
                        "array[1]": 8,
                        "array[2]": 12,
                    },
                    "dataType": "text",
                    "success": function (res) {

                    },
                    error(res) {

                    }
                })
            })



            $("#btn1").click(function () {
                $.ajax({
                    "url": "send/array.html",
                    "type": "post",
                    "data": {
                        "array": [5, 8, 12]
                    },
                    "dataType": "text",
                    "success": function (res) {

                    },
                    error(res) {

                    }
                })
            })
        })


    </script>
</head>
<body>

<a href="test/ssm.html">测试SSM整合的环境</a>

<br/>

<button id="btn1">Send [5,8,12] One</button>
<br/>
<br/>
<br/>


<button id="btn2">Send [5,8,12] Two</button>


<button id="btn5">layer</button>

<script src="layer/layer.js"></script>
<script>
    $("#btn5").click(function (){
        layer.msg("弹框")
    });
</script>
</body>
</html>
